ThinkPHP5


think\db\connector\Pgsql
library\think\db\connector\Pgsql.php at line 20

Class Pgsql

Connection
└─Pgsql

public class Pgsql
extends Connection

Pgsql数据库驱动

Method:
Query table(string $table) 指定数据表(含前缀)
Query name(string $name) 指定数据表(不含前缀)

Method Summary
protected string

parseDsn(array config)

解析pdo连接的dsn信息

array

getFields(string tableName)

取得数据表的字段信息

array

getTables(string dbName)

取得数据库的表信息

protected array

getExplain(string sql)

SQL性能分析

protected bool

supportSavepoint()

是否支持事务嵌套

Methods inherited from think\Connection
__construct, batchQuery, bindValue, close, commit, connect, debug, execute, fieldCase, free, getConfig, getError, getExecuteTimes, getExplain, getFields, getLastInsID, getLastSql, getNumRows, getPdo, getQueryTimes, getRealSql, getResult, getTables, initConnect, listen, model, multiConnect, parseDsn, parseSavepoint, parseSavepointRollBack, procedure, query, quote, rollback, setConfig, startTrans, supportSavepoint, transaction, trigger

Method Detail

library\think\db\connector\Pgsql.php at line 29

parseDsn

protected string parseDsn(array config)

解析pdo连接的dsn信息

Parameters:
config - 连接信息

library\think\db\connector\Pgsql.php at line 44

getFields

public array getFields(string tableName)

取得数据表的字段信息


library\think\db\connector\Pgsql.php at line 78

getTables

public array getTables(string dbName)

取得数据库的表信息


library\think\db\connector\Pgsql.php at line 101

getExplain

protected array getExplain(string sql)

SQL性能分析


library\think\db\connector\Pgsql.php at line 106

supportSavepoint

protected bool supportSavepoint()

是否支持事务嵌套


ThinkPHP5